package com.dhcc.bpm.alarm.config;

public enum RemoveMethod {
    NO("自动解除", "01"), YES("手动解除", "02");
    private final String value;
    private String key;
    // 构造方法
    private RemoveMethod(String value, String key) {
        this.value = value;
        this.key = key;
    }
    // 普通方法
    public static String getValue(String key) {
        for (RemoveMethod c : RemoveMethod.values()) {
            if (c.getKey().equals(key)) {
                return c.value;
            }
        }
        return "";
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

}
